package cn.appsys.pojo;
/**
 * 分页类
 * @author administrader
 *
 */
public class Page {


	private int totalCount; 
	private int pageSize; 
	private int totalPageCount; 
	private int currPageNo; 
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Integer totalCount) {
		if (totalCount > 0) {
			this.totalCount = totalCount;
			this.totalPageCount = this.totalCount % this.pageSize == 0 ? this.totalCount
					/ this.pageSize
					: this.totalCount / this.pageSize + 1;
		}
	}

	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPageCount() {
		return totalPageCount;
	}
	public void setTotalPageCount(int totalPageCount) {
		this.totalPageCount = totalPageCount;
	}
	public int getCurrPageNo() {
		return currPageNo;
	}
	public void setCurrPageNo(int currPageNo) {
		this.currPageNo = currPageNo;
	}

}
